package com.sqfw.project.wp.domain;

import com.sqfw.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sqfw.framework.aspectj.lang.annotation.Excel;

import java.util.ArrayList;
import java.util.List;

/**
 * 工单字典表对象 sys_code
 * 
 * @author lx
 * @date 2023-06-07
 */
@Data
public class SysCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("id")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long autoId;

    /** $column.columnComment */
    @ApiModelProperty("名称")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nodename;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long pid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String state;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nodevalue;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nodetype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer nodeindex;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nodelevel;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long groupid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String codetype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String pinyinName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String pinyinSimpleName;

    private List<Long> pids;

    @ApiModelProperty("树形结构需要传参：内容分类（class1,class2,class3,class4）所在区划（DISTRICT,STREET,COMMITTEE）")
    private List<String> nodetypes;

    //权重，排序使用
    private Integer weight;

    /** 五大模块 */
    private String fiveMajorModules;

    /** 子项 */
    private List<SysCode> children = new ArrayList<SysCode>();

    public void setAutoId(Long autoId) 
    {
        this.autoId = autoId;
    }

    public Long getAutoId() 
    {
        return autoId;
    }
    public void setNodename(String nodename) 
    {
        this.nodename = nodename;
    }

    public String getNodename() 
    {
        return nodename;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setNodevalue(String nodevalue) 
    {
        this.nodevalue = nodevalue;
    }

    public String getNodevalue() 
    {
        return nodevalue;
    }
    public void setNodetype(String nodetype) 
    {
        this.nodetype = nodetype;
    }

    public String getNodetype() 
    {
        return nodetype;
    }

    public void setNodelevel(String nodelevel) 
    {
        this.nodelevel = nodelevel;
    }

    public String getNodelevel() 
    {
        return nodelevel;
    }
    public void setGroupid(Long groupid) 
    {
        this.groupid = groupid;
    }

    public Long getGroupid() 
    {
        return groupid;
    }
    public void setCodetype(String codetype) 
    {
        this.codetype = codetype;
    }

    public String getCodetype() 
    {
        return codetype;
    }
    public void setPinyinName(String pinyinName) 
    {
        this.pinyinName = pinyinName;
    }

    public String getPinyinName() 
    {
        return pinyinName;
    }
    public void setPinyinSimpleName(String pinyinSimpleName) 
    {
        this.pinyinSimpleName = pinyinSimpleName;
    }

    public String getPinyinSimpleName() 
    {
        return pinyinSimpleName;
    }

    public List<String> getNodetypes() {
        return nodetypes;
    }

    public void setNodetypes(List<String> nodetypes) {
        this.nodetypes = nodetypes;
    }

    public List<Long> getPids() {
        return pids;
    }

    public void setPids(List<Long> pids) {
        this.pids = pids;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public List<SysCode> getChildren() {
        return children;
    }

    public void setChildren(List<SysCode> children) {
        this.children = children;
    }

    public String getFiveMajorModules() {
        return fiveMajorModules;
    }

    public void setFiveMajorModules(String fiveMajorModules) {
        this.fiveMajorModules = fiveMajorModules;
    }


}
